# coding: utf-8

from exts import db


class DayOpen(db.Model):
    """
    交易日主数据
    """
    __tablename__ = "day_open"
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, nullable=False, comment="ID")
    day = db.Column(db.Date, nullable=False, index=True, unique=True, comment="日期")
    is_open = db.Column(db.Boolean, nullable=False, comment="1:开市")
